<?
require_once("../config/dbconn.php");require_once("../config/usercls.php");
$sqlhy="select * from {$db_prefix}users where id='".$_SESSION['sys_userid']."'";
$rshy=$db->get_one($sqlhy);
$sqlchk="select * from {$db_prefix}applyzmd where username='".$_SESSION['sys_username']."' and state=1";
	$rschk=$db->get_one($sqlchk);
	if ($rschk){
		
		$isbdzx=1;
		
	}
	else
	{
		$isbdzx=0;
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理页面</title>

<script src="js/prototype.lite.js" type="text/javascript"></script>
<script src="js/moo.fx.js" type="text/javascript"></script>
<script src="js/moo.fx.pack.js" type="text/javascript"></script>
<style>
body {
	font:12px Arial, Helvetica, sans-serif;
	color: #000;

	 background-image: url(image1/bg-body.png);
	margin: 0px;
}
#container {
	width: 282px;
}
.vp{ color:#F00;font-weight: bold;
}
H1 {
	font-size: 12px;
	margin: 0px;
	width: 282px;
	cursor: pointer;
	height: 30px;
	line-height: 20px;	
}
H1 a {
	display: block;
	width: 282px;
	color: #000;
	height: 30px;
	text-decoration: none;
	moz-outline-style: none;
	background-image: url(image1/about.png);

	line-height: 30px;
	text-align: left;
	margin: 0px;
	padding: 0px;
}
.content{
	width: 282px;
	height: 26px;
	
}
.MM ul {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	display: block;
}
.MM li {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;
	list-style-type: none;
	display: block;
	text-decoration: none;
	height: 26px;
	width: 282px;
	padding-left: 0px;
	text-indent:60px;
}
.MM {
	width: 282px;
	margin: 0px;
	padding: 0px;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	clip: rect(0px,0px,0px,0px);
}
.MM a:link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;

	background-repeat: no-repeat;
	height: 26px;
	width: 282px;
	display: block;
	text-align: left;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}
.MM a:visited {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;

	background-repeat: no-repeat;
	display: block;
	text-align: left;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 282px;
	text-decoration: none;
}
.MM a:active {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	color: #333333;

	background-repeat: no-repeat;
	height: 26px;
	width: 282px;
	display: block;
	text-align: left;
	margin: 0px;
	padding: 0px;
	overflow: hidden;
	text-decoration: none;
}
.MM a:hover {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 26px;
	font-weight: bold;
	color: #006600;

	background-repeat: no-repeat;
	text-align: left;
	display: block;
	margin: 0px;
	padding: 0px;
	height: 26px;
	width: 282px;
	text-decoration: none;
}
.ss1 {
	font-weight: bold;
}
</style>
</head>

<body>
<table width="100%" height="280" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="282" valign="top"><div id="container">
	<h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;公告留言</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="announce_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;公告列表</a></li>
		  <li><a href="msg_add.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;会员留言</a></li>
		  <li><a href="msg_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;留言列表</a></li>
        </ul>
      </div>
	
	<!--<h1 class="type"><a href="javascript:void(0)">新闻管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><img src="images/menu_topline.gif" width="182" height="5" /></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="news_lst.php" target="main">新闻列表</a></li>
		  <li><a href="news_query.php" target="main">新闻查询</a></li>
        </ul>
      </div> -->
	
      <h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;资料管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="info_view.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;资料查看</a></li>
		  <li style="display:"><a href="info_price.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;账户余额</a></li>
          <li><a href="info_pwd.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;密码修改</a></li>
        </ul>
      </div>
	  <?
	  if (($glo_closetjnet==0)||($glo_closeglnet==0)){
	  ?>
	   <h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;网络管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
		  <?
		  if ($glo_closetjnet==0){
		  ?>
		  <li style="display:none"><a href="user_tj.php" target="main">邀请会员(Invite Member)</a></li>
		  <li style="display:none"><a href="nets_tjtree.php" target="main">推荐树(Recommend network diagram)</a></li>
          <li style="display:"><a href="nets_tj.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;推荐网</a></li>
		  <?
		  }
		  ?>
        </ul>
      </div>
	  <?
	  }
	  ?>
	  
	  <h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;业务管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
		<?php if($isbdzx==1){?>
          <li><a href="user_reg.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;注册会员</a></li>
		   <li style="display:"><a href="user_tj1.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;注册的会员</a></li>
		 <?php } ?>
		 <?php if($isbdzx !=1){?>
          <li style="display:"><a href="user_zmdlst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;申请服务中心</a></li>
		   <?php } ?>  
        </ul>
      </div>
	  
      <h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;商品管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="product_buy.php" target="_blank"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;商城首页</a></li>
		<li><a href="product_cart.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;购物车</a></li>
		<li><a href="order_lst0.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;未支付</a></li>
        <li><a href="order_lst1.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;已支付</a></li>
        <li><a href="order_lst2.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;已发货</a></li>
        <li><a href="order_lst3.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;已收货</a></li>
       
        </ul>
      </div>
	  <h1 class="type"><a href="javascript:void(0)">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="image1/0033.png" width="25" height="20" border="0"/>&nbsp;&nbsp;财务管理</a></h1>
      <div class="content">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td></td>
          </tr>
        </table>
        <ul class="MM">
          <li><a href="huikuan_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;汇款登记</a></li>
<!--
          <li style="display:"><a href="wangyin_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;网银充值</a></li>
		  <li><a href="tixian_auto.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;自动提现</a></li>--->
          <li><a href="tixian_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;奖金提现</a></li>
		  <li><a href="trans_bd.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp; 奖金币转出</a></li>
          <li><a href="trans_zzdo.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;内部转账</a></li>
		  <li><a href="trans_zz.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;转出记录</a></li>
		  <li><a href="trans_zr.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;转入记录</a></li>
		  <li style="display:none"><a href="salary_lst" target="main">红利列表(Rebate bonus)</a></li>
		  <li><a href="query_salary.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;奖金列表</a></li>
		  <li><a href="caiwu_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;财务记录</a></li>
		  <li><a href="cx_lst.php" target="main"><img src="image1/003.png" width="18" height="17" border="0"/>&nbsp;&nbsp;兑换商品</a></li>
        </ul>
      </div>
	  
      </div>
        <script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
	
		var myAccordion = new fx.Accordion(
			toggles, contents, {opacity: true, duration: 400}
		);
		myAccordion.showThisHideOpen(contents[0]);
	</script>
	<Br />
	<?
	$sql="select * from {$db_prefix}users where id='".$_SESSION['sys_userid']."'";
	$rs=$db->get_one($sql);
	?>
		<table align="center" border="0" cellpadding="3" cellspacing="1">
          <tr>
            <td align="left" valign="middle"><img src="image1/001.png" width="22" height="30" /></td>
            <td height="30" colspan="2" align="left" valign="middle">会员编号：
<?=$rs['username']?>&nbsp;
			<span class="vp"><? if ($rs['isqian']==1) echo "核心股东";
				  					else{ if($rs['tjnum']>=5) echo "VIP会员"; else echo $rs['tjnum']."星会员"; }?> </span>
			</td>
          </tr>
		  <tr>
            <td align="left" valign="middle"><img src="images/bao.gif" width="25" height="22" /></td>
            <td height="30" colspan="2" align="left" valign="middle">总奖金累计：
            <?=$rs['priceall']?>￥</td>
          </tr>
           <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">重消累计：
            <?=$rs['cxmoney']?>￥</td>
          </tr>
		   <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">可用余额：
              <?=$rs['jjprice']?>￥</td>
          </tr>
          <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">购物积分：
              <?=$rs['gcprice']?>￥</td>
          </tr>
		  <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">日分红总额：
              <?=$rs['fh_money']?>￥</td>
          </tr>
		   <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">股票：
              <?=round($rs['gpprice'])?>股</td>
          </tr>
           <tr>
            <td align="left" valign="middle"><img src="image1/002.png" width="30" height="25" /></td>
            <td height="30" colspan="2" align="left" valign="middle">报单币：
              <?=$rs['price']?>￥</td>
          </tr>
          
      </table>      </td>
  </tr>
</table>
</body>
</html>
